package com.topnav.mc.admin.service;

import com.topnav.mc.admin.entity.GbServer;
import com.topnav.mc.admin.entity.bean.GbServerBean;
import com.topnav.mc.admin.entity.param.GbServerParam;
import com.topnav.mc.base.mc.IMcService;

import java.util.List;

//public interface IGbServerService extends IService<GbServer> {
public interface IGbServerService extends IMcService<GbServer, GbServerBean, GbServerParam> {
    /**
     * 从缓存取得
     * @param gbId
     * @return
     */
    GbServer getFromCache(String gbId);
    List<GbServer> getAllFromCache();

    /**
     * 保存到缓存
     */
    void saveToCache(GbServer gs);
    void saveAllToCache();
    void removeFromCache(GbServer gs) ;
}
